package com.haizhi.crm.sys.auth.dao;

import com.haizhi.crm.sys.auth.model.RoleDo;
import com.haizhi.crm.sys.auth.model.RoleVo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by yangyijun on 2018/5/10.
 */
@Repository
public interface RoleDao extends JpaRepository<RoleDo, Long> {
    @Query(value = "select id,name,remark from RoleDo" )
    List<RoleVo> list();
}
